package org.tity.support;

import static org.junit.Assert.assertTrue;

import org.junit.Test;
import org.tity.ends.transfer.Result;
import org.tity.sql.data.RcdSet;

public class ResultTest {

	@Test
	public void test_filter() throws Exception {
		
		Result r=new Result(); 
		r.dataKV("a",new RcdSet());
		Object or=r.getDataItem("a");
		assertTrue(or instanceof RcdSet);
 
		r=Result.FAILURE("XX");
				
		assertTrue("XX".equals(r.code()));
		
		r.data(new String[] {"1","3","4","X"});
		
		System.out.println(r.toJSONString());
		
	}
	
}
